package com.jrx.anytxn.investor.service;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.investor.dto.loan.LoanAccountInvestorInfoRes;
import com.jrx.anytxn.investor.entity.AmLoanAccountInvestorInfo;

import java.util.List;

/**
 * 出资方账户service
 * @author 黄秋平
 * @create 2020/6/18
 */
public interface ILoanAccountInvestorInfoService {

   /**
    * 根据以下条件查询出资方账户信息
    * @author fan.yang
    * date: 2020/6/24 0024 上午 9:49
    * @param tenantId 租户ID
    * @param customerId 客户ID
    * @param investorLoanId  出资方贷款订单id
    * @return com.jrx.anytxn.investor.entity.AmLoanAccountInvestorInfo
    */
   LoanAccountInvestorInfoRes getLoanAccountByInveLoanIdAndCusId(String tenantId, String customerId,String investorLoanId) throws TxnException;

    /**
     * 根据以下条件查询出资方贷款账户信息
     * @author fan.yang
     * date: 2020/6/23 0023 下午 15:42
     * @param tenantId 租户ID
     * @param customerId 客户ID
     * @param loanId 订单ID
     * @param investorId 出资方ID
     * @return java.util.List<com.jrx.anytxn.investor.entity.AmLoanAccountInvestorInfo>
     */
    List<LoanAccountInvestorInfoRes> getAccountByTenIdAndCusIdAndLoanIdAndInveId(String tenantId, String customerId, String loanId, String investorId) throws TxnBizException;

}
